package com.xf.leecode;

/**
 * @author zouxf Department:3cs
 * @create Date 2022/7/21 8:47
 * @description
 * @lastModifiedBy
 * @lastModifiedDate(yyyy/MM/dd)
 * @see
 */
public class SubSeqStr {
    public static void main(String[] args) {
        String str16 = "FF";
        char[] chars = str16.toCharArray();
        int num10 = 0;
        for (int i = 0; i < chars.length; i++) {
            num10 += Math.pow(i, i);
        }
    }

    static void answer(String s, String t) {
        char[] chars = s.toCharArray();
        char[] chart = t.toCharArray();
        for (int j = 0; j < chart.length; j++) {
            char cc = chart[j];
            int mark = -1;
            for (int i = 0; i < chars.length; i++) {
                char c = chars[i];
                if (cc == c) {
                    mark = 1;
                }
            }
            if (mark == -1) {
                chart[j] = ' ';
            }
        }

        StringBuffer sbu = new StringBuffer("");
        for (int i = 0; i < chart.length; i++) {
            char c = chart[i];
            if (' ' != c) {
                sbu.append(c);
            }
        }
        String ss = sbu.toString();
        System.out.println(ss);
        System.out.println(ss.contains(s));
    }
}
